import Vue from 'vue'
import App from './App'
import http from './utils/request'
import showMessage from './utils/message'
import store from './store'

Vue.config.productionTip = false
Vue.prototype.$msg = showMessage

Vue.prototype.$format = function (val) {
  return Number(val).toFixed(2)
}
// this.$msg()
// this.$msg('成功')

Vue.prototype.$http = http
// this.$http.get('xxx')

// Vue.component()
// { compoennts }

App.mpType = 'app'

const app = new Vue({
  ...App,
  store,
})
app.$mount()
